/*
 * ConfigNew.java
 *
 * Created on September 5, 2007, 8:00 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package portfolio.dbHost;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import portfolio.configMessage.configMessageEvent;
import portfolio.configMessage.configMessageFrame;
import portfolio.configMessage.configMessageListener;
import portfolio.mainScreen;

/**
 *
 * @author ACA
 */
public class ConfigNew implements ActionListener, configMessageListener {
    private mainScreen         mainFrame = null;
    private configMessageFrame msgFrame  = null;
    
    private String CONFIGURE_TITLE = "CONFIGURE";
    /**
     *
     */
    public void actionPerformed(ActionEvent e) {
    }
    /**
     *
     */
    public void okSelected(configMessageEvent e) {
    }
    /**
     *
     */
    public void cancelSelected(configMessageEvent e) {
    }
    
    /**
     * Creates a new instance of ConfigNew
     */
    public ConfigNew(mainScreen mainFrameParam)  throws Exception
    {
        mainFrame = mainFrameParam;
        if (mainFrame == null)
            throw new Exception ("null mainFrame parameter.");

        Vector vCreateParams = new Vector ();
        vCreateParams.add ("Item 0: ");
        vCreateParams.add ("Item 1: ");
        vCreateParams.add ("Item 2: ");
        vCreateParams.add ("Item 3: ");
        vCreateParams.add ("Item 3: ");
        Vector vCreateDefaults = new Vector ();
        vCreateDefaults.add ("Default Item 0");
        vCreateDefaults.add ("Default Item 1");
        vCreateDefaults.add ("Default Item 2");
        vCreateDefaults.add ("Default Item 3");
        vCreateDefaults.add ("Default Item 4");

        msgFrame = new configMessageFrame (mainFrame, this.CONFIGURE_TITLE, vCreateParams, vCreateDefaults, 250+ 50, 120 +30 +30); 
                     
        msgFrame.showMessageFrame();
        msgFrame.addConfigMessageListener(this);    
    }
}
